﻿<Window x:Class="Resxus.View.FindAndReplaceWindowView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:t="http://schemas.microsoft.com/wpf/2008/toolkit"
    Title="{Binding DisplayName}"
    MinHeight="300" Height="500" 
    MinWidth="500" Width="600"        
    WindowStyle="ToolWindow"         
    WindowStartupLocation="CenterScreen">
    <DockPanel 
        Margin="7">        
        <StackPanel DockPanel.Dock="Top">
            <TextBlock 
            Margin="5,0,0,1"             
            Grid.Row="0" 
            Text="찾을내용"/>
            <DockPanel 
                Margin="5">                
                <Button
                    Margin="5,0,0,0"
                    DockPanel.Dock="Right"                                       
                    Width="25"                    
                    Height="23"
                    Content="?"/>
                <TextBlock
                    VerticalAlignment="Center"
                    Margin="8,0,8,0"
                    Text="ID"/>
                <ComboBox
                    IsEditable="true"
                    Width="130"
                    SelectedIndex="0"                    
                    HorizontalContentAlignment="Center">                    
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Self}" TextSearch.Text="{Binding Self}"/>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>                    
                </ComboBox>
                <TextBlock 
                    VerticalAlignment="Center"
                    Margin="8,0,8,0"
                    Text="Value"/>
                <ComboBox
                    IsEditable="true"
                    DockPanel.Dock="Right"                                       
                    />
            </DockPanel>
        </StackPanel>
        <StackPanel DockPanel.Dock="Top">
            <TextBlock 
            Margin="5,0,0,1"             
            Grid.Row="0" 
            Text="바꿀내용"/>
            <DockPanel                
                Margin="5">
                <Button
                    Margin="5,0,0,0"
                    DockPanel.Dock="Right"                                       
                    Width="25"                    
                    Height="23"
                    Content="?"/>
                <CheckBox 
                    Margin="5,0,5,0"
                    VerticalAlignment="Center" 
                    Content="ID"/>
                <CheckBox 
                    IsChecked="true"
                    Margin="5,0,5,0"
                    VerticalAlignment="Center" 
                    Content="Value"/>                
                <ComboBox
                    IsEditable="true"
                    />                
            </DockPanel>
        </StackPanel>        
        <GroupBox
             DockPanel.Dock="Top"
            >
            <GroupBox.Header>
                <TextBlock Text="찾기옵션"/>
            </GroupBox.Header>
            <StackPanel Margin="8">
                <DockPanel>
                    <TextBlock Margin="3" Text="찾을범위"/>
                    <ComboBox Margin="3,3,3,8"
                              SelectedIndex="0"
                              HorizontalContentAlignment="Center"
                              >
                        <ComboBox.Items>
                            <ComboBoxItem Content="모든 파일"/>
                            <ComboBoxItem Content="선택한 파일"/>
                            <ComboBoxItem Content="현재 편집중인 문서"/>
                            <ComboBoxItem Content="현재 선택한 영역"/>
                        </ComboBox.Items>
                    </ComboBox>                    
                </DockPanel>                
                <CheckBox Margin="3" Content="대소문자 구별"/>
                <CheckBox Margin="3" Content="정규식 사용"/>
                <CheckBox Margin="3" Content="값만 검색"/>
            </StackPanel>
        </GroupBox>
        <StackPanel
            DockPanel.Dock="Bottom"
            Height="30"
            Margin="2,8,8,8"
            HorizontalAlignment="Right"            
            Orientation="Horizontal">
            <Button Width="100" Content="찾기"/>
            <Button Margin="9,0,0,0" Width="100" Content="바꾸기"/>
        </StackPanel>
        <t:DataGrid
            Margin="0,5,0,0">
            <t:DataGrid.Columns>
                <t:DataGridCheckBoxColumn Width="Auto">
                    <t:DataGridCheckBoxColumn.HeaderTemplate>
                        <DataTemplate>
                            <CheckBox/>
                        </DataTemplate>
                    </t:DataGridCheckBoxColumn.HeaderTemplate>
                </t:DataGridCheckBoxColumn>
                <t:DataGridTextColumn Header="파일" Width="Auto"/>
                <t:DataGridTextColumn Header="언어" Width="Auto"/>
                <t:DataGridTextColumn Header="ID" Width="Auto"/>
                <t:DataGridTextColumn Header="VALUE" Width="Auto"/>
            </t:DataGrid.Columns>
        </t:DataGrid>
    </DockPanel>
</Window>
